<?php 
session_start();
require_once("include/authen.php");
require_once("include/ui.php");
 
if ($_SESSION["permission"][$stockScreen]["View"]=="0"){
	echo "<script>alert('".$no_permit."');</script>";
	echo "<meta http-equiv = refresh ; content = '0 ; url = mainscreen.php'>";
	exit();
}
 echo headerPrint("Stock Product [Print]");
?>

<SCRIPT src="js/js_stock_print.js"></SCRIPT> 
<FORM name="Act" action="<?php echo $PHP_SELF?>" method="post"> 
<INPUT type=hidden value="<?php echo $_GET['b'];?>" id="branch" name="branch"> 
<INPUT type=hidden value="<?php echo $_GET['c'];?>" id="category" name="category"> 
<INPUT type=hidden value="<?php echo $_GET['p'];?>" id="product" name="product"> 
<INPUT type=hidden value="<?php echo $_GET['po'];?>" id="pos" name="pos"> 
<INPUT type=hidden value="<?php echo $_GET['s'];?>" id="stock" name="stock"> 
<INPUT type=hidden value="<?php echo $_GET['pr'];?>" id="premium" name="premium"> 

<table width="800" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="800" valign="top">
               <div id="element-box">
                <div class="1m">
                    <table cellspacing="1" id="resultData" class=list>
                    <thead style='font-size:10px;font-weight:bold;'>
                       <tr>
								<th width="3%" >No.</th>
								<th style='display:none' >BranchID</th>
								<th style='display:none' >ProductID.</th>
								<?php  if ($_SESSION['branchtype'] =="1"){ ?>
								<th class="title" width="13%" >Branch</th>
								<th class="title" width="13%" >Product</th>
								<th  class="title" width="12%"  nowrap="nowrap">Category</th>
								<th  class="title" width="5%"  nowrap="nowrap">POS</th>
								<th  class="title" width="5%"  nowrap="nowrap">Stock</th>
								<th  class="title" width="5%"  nowrap="nowrap">Prem</th>
								<th  class="title" width="10%"  nowrap="nowrap">Unit</th>
								<th  class="title" width="7%"  nowrap="nowrap">Cost</th>
                                <th  class="title" width="7%"  nowrap="nowrap">M-Amt</th>
								<th  class="title" width="7%"  nowrap="nowrap">S-Amt</th>
								<th  class="title" width="7%"  nowrap="nowrap">Total</th>
								<?php }else{?>
								<th class="title" width="18%" >Product</th>
								<th  class="title" width="13%"  nowrap="nowrap">Category</th>
								<th  class="title" width="5%"  nowrap="nowrap">POS</th>
								<th  class="title" width="5%"  nowrap="nowrap">Stock</th>
								<th  class="title" width="5%"  nowrap="nowrap">Prem</th>
								<th  class="title" width="10%"  nowrap="nowrap">Unit</th>
								<th  class="title" width="8%"  nowrap="nowrap">Cost</th>								
								<th  class="title" width="7%"  nowrap="nowrap">M-Amt</th>
								<th  class="title" width="7%"  nowrap="nowrap">S-Amt</th>
								<th  class="title" width="8%"  nowrap="nowrap">Total</th>
								<?php }				 
								?> 
							 
                      </tr>
                    </thead>
                   <tbody style='font-size:10px'>
                   </tbody>
                   <tfoot>
                         <tr>
							<td colspan="<?php if ($_SESSION['branchtype'] =="1"){echo "14";}else{echo "14"; }?>">
								<div class="boxfooter">
								 <div class="totalpage">Total : <span id="rowCount">0</span>&nbsp;&nbsp;rows</div>
								 </div> 
							</td>
                         </tr>
                     </tfoot>
                    </table>
                </div>
                </div> <!-- elementbox-->
    </td>
  </tr>
</table>
 </FORM>

